package com.heima.feignclient.client;

import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.media.dtos.WmUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface WemediaFeign {

    /**
     * 创建自媒体用户
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/wmuser/save")
    public Integer userSave(@RequestBody WmUserDto dto);

    /**
     * 自媒体文章审核不通过
     * @param dto
     */
    @PostMapping("/api/v1/news/auth_fail")
    void authFail(@RequestBody NewsAuthDto dto);
}
